Reject masked assignment inputs - #4980
Conversation
✅MegaLinter analysis: Success
Notices📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining See detailed reports in MegaLinter artifacts Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining
|
|
Closing as low value. Recursively propagating NumPy masked-array semantics through the assignment solvers adds substantial complexity for an input type that is not otherwise supported consistently by the solver stack. A broader API-level design would be needed before adopting this behavior. |

What changed
MaskedArrayinputsRoot cause
Backend/NumPy array conversion can discard
MaskedArraymask metadata and expose the hidden payload. In the assignment utilities, a missing cost could therefore be interpreted as a real numeric cost and silently change the selected assignment; a maskedkcould likewise be converted into an unintended count.Validation